package com.evildog.workspace.system.application.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * MenuPermission request body
 * </p>
 *
 * @author evildog
 * @since 2020-07-27
 */
@Data
@Accessors(chain = true)
@ApiModel(value="MenuPermission查询参数/request body")
public class MenuPermissionCreateParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "父菜单")
    @NotNull(message = "父菜单不能为空")
    private Long parentId;

    @ApiModelProperty(value = "前端判断权限code（platform-menu platform-menu-component必须唯一）")
    @NotEmpty(message = "code不能为空")
    private String code;

    @ApiModelProperty(value = "状态 0 禁用 1 正常")
    private Integer status;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;


}
